package com.bytz.modules.cms.pay.service;

import com.bytz.modules.cms.order.model.PayNotifyResult;
import com.bytz.modules.cms.pay.model.QueryPayIn;
import com.bytz.modules.cms.pay.model.StartPayIn;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IPayOnlineService {

	/**
	 * 发起支付页面
	 */
	String startPayPage(StartPayIn startPayIn);

	/**
	 * 前台支付回调
	 */
	void payFrontNotify(HttpServletRequest request, HttpServletResponse response, String payWay);

	/**
	 * 后台支付回调
	 */
	void payBackNotify(HttpServletRequest request, String payWay);

	/**
	 * 交易查询结果
	 */
	PayNotifyResult queryPayResult(QueryPayIn queryPayIn);

}
